# Makefile All Modules
target_create = libs alarmbin s485bin netbin appbin audiobin avbin install 

target_clear = cleanLibs cleans485  cleanNet cleanApp cleanAlarm cleanaudio cleanAv

all: $(target_create)

clean: $(target_clear)
	rm -rf bin/alarm  bin/app  bin/av  bin/net  bin/s485 bin/audio

libs:
	cd utilities && make
alarmbin:
	cd alarm && make
avbin:
	cd av && make
s485bin: 
	cd s485 && make
netbin:
	cd net && make
appbin:
	cd core && make
audiobin:	
	cd audio && make
install:
	cp bin/* /home/cooper/workspace/bin
	cp bin/* /home/cooper/workspace/bin/bin/bin

cleanLibs:
	cd utilities && make clean
cleans485:
	cd s485 && make clean
cleanAv:
	cd av && make clean
cleanNet:
	cd net && make clean
cleanApp:
	cd core && make clean
cleanAlarm:
	cd alarm && make clean
cleanaudio:
	cd audio && make clean
